package com.baizhi.object;

import java.util.Objects;

public class ObjectsDemo {
    public static void main(String[] args) {
        String a = null;
        String b = "abc";

        boolean flag = Objects.equals(a, b);
        System.out.println(flag);

        System.out.println(Objects.isNull(a)); //true
        System.out.println(Objects.isNull(b)); //false
    }
}
